#ifndef STOCK_TABLE_DELEGATE_HPP
#define STOCK_TABLE_DELEGATE_HPP

#include <QStyledItemDelegate>

class StockTableDelegate : public QStyledItemDelegate {
  Q_OBJECT

public:
  explicit StockTableDelegate(QObject *parent = nullptr);

  void paint(QPainter *painter, const QStyleOptionViewItem &option,
             const QModelIndex &index) const override;
  QString displayText(const QVariant &value,
                      const QLocale &locale) const override;
};

#endif // STOCK_TABLE_DELEGATE_HPP
